<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:ui="http://java.sun.com/jsf/facelets">
	  
	  <f:metadata>
	  	<f:viewParam name="blogIdentifier" value="#{showBlog.blogIdentifier}"></f:viewParam>
	  </f:metadata>
	  <body>
	  	#{showBlog.blog.name}
	  	
	  	<ui:repeat var="post" value="#{showBlog.posts}">
	  		<h2>#{post.title}</h2>
	  		<p>
	  		<h:outputText value="#{post.content}" converter="PostContentConverter" escape="false"></h:outputText>
	  		</p>
	  		
	  		<a href="post.xhtml?postIdentifier=#{post.identifier}">More</a>
	  		
	  	</ui:repeat>
	  	
	  </body>
	  
</html>
